Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Other methods related to startup and shutdown
The following event procedures are also related to starting up and shutting down SDOs.
destroyObject
This is the standard event procedure that runs to shut down an object. It deletes links properly and performs other cleanup tasks before deleting its own persistent procedure, as shown:
exitObject
For an application window to shut down properly, its objects should be deleted from the inside out. That is, the contained objects must clean up and delete themselves before the window itself is deleted. An event such as pressing a Done or Exit button inside a container can initiate this by publishing the
exitObjectevent. The convention is that the event passes the exit request to itsContainer-Source. The container that can initiate the exit defines a local version and does not call the standard one.That local
exitObjectis built into the SmartWindow support code, as shown:
launchFolderWindow
This procedure runs routinely from a dynamic browser when the user double-clicks on a row or selects the Edit or Modify button. It retrieves the value of the
FolderWindowToLaunchproperty for the browser, which is part of the browser definition, and invokes thelaunchContainerprocedure in the Session Manager. For more information onlaunchContainerand examples of its use, see Chapter 5, " Using ADM2 Properties and Methods in Progress Dynamics."Because
launchFolderWindowis specifically intended to be invoked inside a browser, you normally use thelaunchContainerprocedure itself when you want to invoke containers from your application code.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |